package com.example.blog.service;

//import com.example.blog.dto.FavoriteDTO;
import com.example.blog.modules.article.dto.FavoriteDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface FavoriteService {
    FavoriteDTO favoriteArticle(Long articleId);
    void unfavoriteArticle(Long articleId);
    boolean hasFavorited(Long articleId);
    Page<FavoriteDTO> getUserFavorites(Long userId, Pageable pageable);
    Page<FavoriteDTO> getArticleFavorites(Long articleId, Pageable pageable);
    long getArticleFavoritesCount(Long articleId);
} 